A Transformational Approach to Code Generation for Numerical Simulation: the SimGen System
نویسندگان
چکیده
In the last decade, researchers in numerical simulation have worked on defining standards for specifying physical models at the mathematical level of abstraction of Differential Algebraic Equations, or DAEs one can in particular mention the Modelica initiative. Today, tools for performing simulation, i.e. checking, interpreting or compiling mathematical models into simulation programs, are being proposed. It turns out that, despite some peculiarities, general methods from advanced software engineering are applicable to this field. In particular, code generation can be done using frameworks such as the transformational approach. We describe in this paper such a system, called SimGen, that generates simulation code using a set of small freely applicable transformations. Indeed, transformations start from an initial set of differential algebraic equations DAEs and yield another set that is suitable for being used by a solver. Solvers are numerical programs that embed generic methods for solving DAEs, provided they satisfy some syntactic as well as semantic constraints. Moreover, in the course of code generation i.e. equation transformation some semantic checking can be done, and errors reported, e.g. equation set singularity. SimGen is being used on real-world large-scale physical models, having more than one thousand equations, and we give experimental results. We also compare SimGen to other similar systems.
منابع مشابه
Numerical Simulation of Free Surface Flows and Comparison of Symmetry and Real Boundary Conditions at the Free Surface
For implementation of the free surface boundary condition, a new subroutine has been introduced to an existing steady 3-D body fitted code. This code was previously written for steady flow simulation in closed ducts. The algorithm used in this subroutine reduces the instability problem according to the free surface wave generation. For code validation, it was applied to two different open cha...
متن کاملNumerical Simulation of Free Surface Flows and Comparison of Symmetry and Real Boundary Conditions at the Free Surface
For implementation
 of the free surface boundary condition, a new subroutine has been introduced to an existing steady 3-D body fitted code. This code was previously written for steady flow simulation in closed ducts. The algorithm used in this subroutine reduces the instability problem according to the free surface wave generation. For code validation, it was applied to two different open c...
متن کاملAutomatic Generation of a Multi Agent System for Crisis Management by a Model Driven Approach
Considering the increasing occurrences of unexpected events and the need for pre-crisis planning in order to reduce risks and losses, modeling instant response environments is needed more than ever. Modeling may lead to more careful planning for crisis-response operations, such as team formation, task assignment, and doing the task by teams. A common challenge in this way is that the model shou...
متن کاملThree Dimensional Numerical Simulation of Tsunami Generation and Propagation Due to Makran Subduction and run-up on Chabahar Bay and Makran Coasts
Makran subduction located at the northwest of the Indian Ocean nearby the southern coast of Iran and Pakistan. Makran subduction is the source of tsunamis that threaten southern coast of Iran. In this article, generation and propagation of 1945’s tsunami initiated by Makran subduction is simulated. For the three dimensional generation of the wave, advanced algorithm of Okada is adopted. The CFD...
متن کاملOptimal Scheduling of Battery Energy Storage System in Distribution Network Considering Uncertainties using hybrid Monte Carlo- Genetic Approach
This paper proposes a novel hybrid Monte Carlo simulation-genetic approach (MCS-GA) for optimal operation of a distribution network considering renewable energy generation systems (REGSs) and battery energy storage systems (BESSs). The aim of this paper is to design an optimal charging /discharging scheduling of BESSs so that the total daily profit of distribution company (Disco) can be maximiz...
متن کامل